home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_400
/
428_02
/
readme.doc
< prev
Wrap
Text File
|
1994-03-13
|
9KB
|
214 lines
README.DOC
PICTOR Video Library
==============================================================
Contents:
--------------------------------------------------------------
* Copyright Notice and Agreement
* Printed Manual Offer
* Additions and Corrections to the Manual
* Compilation Notes
* Help Compiler Notes (HC.EXE)
* Ed Text Editor
======================================================================
Copyright Notice and Agreement
----------------------------------------------------------------------
This product (source code, object code, supporting programs, and
documentation) is protected by United States copyright law as
well as international copyright treaty provisions. SoftCircuits
is releasing this product to be used and distributed free of
charge, providing that SoftCircuits retains its copyright, and
receives credit for the work done in this product's creation.
In keeping with the above, SoftCircuits grants to you the
following rights:
1. You may make any number of copies of the source code, object
code, and supporting programs, for your own use or to be
distributed to others, provided that you distribute them in the
original, unmodified form, complete with all files, copyrights
notices, etc, and that no fee is charged for such distribution
except for reasonable media and shipping charges.
2. You may modify the copyrighted source code, object code, and
supporting programs in connection with your use of this product.
However, under copyright law, the modified source code and
resulting object code remain the copyrighted property of
SoftCircuits, regardless of the extent of the modifications.
Therefore, you may not alter or remove any copyright notices or
similar proprietary rights notices from any portion of this
product.
3. You may also incorporate any of the copyrighted object code
in executable form into your own programs, and you may use and
distribute these programs royalty free, provided that all of the
following requirements are satisfied:
a. All copies of such programs must bear a copyright notice, and
the form of the notice must not detract from SoftCircuits'
copyright in any way. Your own copyright notice is sufficient if
it consists entirely of the following: the word "Copyright", the
years(s) of publication of the program, and your name (or your
company name).
b. Such programs must not substantially duplicate the overall
functionality of this product or any portion thereof.
c. You must assume full and complete responsibility and
liability for the operation of these programs, including testing
of all included object code to ensure that it functions as
documented and/or as expected or required.
Except as described above, you may not legally copy or
distribute the documentation, source code, object code, or
supporting programs, in whole or in part. All rights not
specifically granted above are reserved by SoftCircuits.
SOFTCIRCUITS SPECIFICALLY DISCLAIMS ALL WARRANTIES, INCLUDING,
WITHOUT LIMITATION, ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF THIRD
PARTY RIGHTS.
UNDER NO CIRCUMSTANCES WILL SOFTCIRCUITS BE LIABLE FOR SPECIAL,
INCIDENTAL, CONSEQUENTIAL, INDIRECT, OR ANY OTHER DAMAGES OR
CLAIMS ARISING FROM THE USE OF THIS PRODUCT, INCLUDING LOSS OF
PROFITS OR ANY OTHER COMMERCIAL DAMAGES, EVEN IF WE HAVE BEEN
ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IN NO EVENT WILL
SOFTCIRCUITS BE LIABLE FOR ANY CLAIMS, LIABILITY, OR DAMAGES
ARISING FROM CHANGES MADE BY YOU TO THE SOURCE CODE, OBJECT
CODE, OR SUPPORTING PROGRAMS.
======================================================================
Printed Manual Offer
----------------------------------------------------------------------
If you would like to obtain a printed manual for the Pictor library,
complete with table of contents and index, send $9.00 + $1.50
shipping (USA) to:
SoftCircuits Programming
P.O. Box 16262
Irvine, CA 92713
======================================================================
Additions and Corrections to the Manual
----------------------------------------------------------------------
KBDREAD Utility:
The KBDREAD.EXE utility displays the key code (as returned by the
kbdread function) for each key pressed. It is useful for finding the
keyboard code for keystrokes you want to be handled by your
application. Press Escape to quit the KBDREAD program. The source code
(KBDREAD.C) is also on the distribution disk(s).
There are no corrections to the manual at this time.
======================================================================
Compilation Notes
----------------------------------------------------------------------
If you are recompiling the library, the MAKEFILE file in the library-
source directory is designed to be used with either Microsoft's NMAKE
or Borland's MAKE. You will need to edit the make file to specify the
compiler and memory model that you are using. This process is
described in the make file comments. If you are using Turbo C,
Quick C, or a compiler from another vender, you will probably need to
make additional changes as well.
Under Microsoft C 7.0, warning level 3, the only warnings you should
get relate to in-line assembler precluding optimizations in the
modules that contain in-line assembler. These warnings are harmless.
Under Borland C 3.0, the only warnings are in the TONE.C module. The
warning is that code has no effect. This warning is due to Borland's
outp macro and not to code in the Pictor library. These warnings are
also harmless.
======================================================================
Help Compiler Notes (HC.EXE)
----------------------------------------------------------------------
The help directory contains the source code to the help compiler
(HC.C) and a help viewer utility (VH.C). The help compiler reads a
help text file and creates a help file that can be used by the PICTOR
library help functions. The compiler compresses the help text and
adds additional information needed to index and access the help
topics.
The help file generated by the help compiler consists of the following
fields:
[File signature]
[Size of compressed code tree (2 bytes)]
[Compressed code tree]
[File offset of first byte following compressed help text (4 bytes)]
|
[Compressed help text:] |
Compressed size (2 bytes) \ |
Uncompressed size (2 bytes) |--- For each help topic |
Compressed help text / |
|
[Number of help topics (2 bytes)] <---------------------------+
[Size of largest compressed help topic (2 bytes)]
[Size of largest uncompressed help topic (2 bytes)]
[File offset of each topic's compressed help text (4 bytes each)]
[Size of compressed topic strings (2 bytes)]
[Size of uncompressed topic strings (2 bytes)]
[Compressed topic strings--sorted alphabetically]
======================================================================
Ed Text Editor
----------------------------------------------------------------------
The distribution disk(s) includes the source code to a text editor
that makes use of the PICTOR library. There is no makefile for the
editor since the makefile format depends on the environment you are
using. You can easily create a makefile for the editor. It should
include the following modules:
ED.C
COMMANDS.C
NAVIGATE.C
BUFFERS.C
DATA.C
Of course the editor must also be linked with the PICTOR library that
corresponds to the memory model and compiler you are using. You will
probably want to use the large or compact memory model since this
will allow the editor more memory to load larger files.
The editor was written originally for Microsoft C. It took advantage
of a Microsoft language extension that allows an array of zero
elements as the last member of a structure. When the editor was made
to compile under Borland C, the array was changed to contain one
element. As a result, the editor currently wastes one byte